package qq2564874169.tuaotuao.fx.mq;

import qq2564874169.tuaotuao.fx.EventArgs;
import qq2564874169.tuaotuao.fx.EventDispatcher;

import java.util.UUID;

class MsgContext extends EventArgs {
    private static String msgKey = UUID.randomUUID().toString();
    public static EventDispatcher<MsgContext> evMsg = new EventDispatcher<>(msgKey);

    public String queue;
    public String data;

    public void fire(Object sender) {
        evMsg.fire(msgKey, sender, this);
    }
}
